package com.hoyue.classroom.service;

import java.util.List;

/**
 * @author SiMan
 * @date 2019/8/28 0:15
 */
public interface BaseService<T> {

	T selectByPrimaryKey(Object key);

	int insert(T entity);

	int insertSelective(T entity);

	int delete(Object key);

	int update(T entity);

	int updateNotNull(T entity);

	List<T> select(T entity);

	List<T> selectAll();

}